package org.eztouch.netty.base;

import java.io.Serializable;

import org.eztouch.netty.Constants;

/**
 * 必须实现序列,serialVersionUID 一定要有 
 *
 */
public class BaseMsg implements Serializable{
	private static final long serialVersionUID = 1L;  
    private MsgType type;  
    private String clientId;  //必须唯一，否者会出现channel调用混乱  
  
    //初始化客户端id  
    public BaseMsg() {  
        this.clientId = Constants.getClientId();  
    }  
  
    public String getClientId() {  
        return clientId;  
    }  
  
    public void setClientId(String clientId) {  
        this.clientId = clientId;  
    }  
  
    public MsgType getType() {  
        return type;  
    }  
  
    public void setType(MsgType type) {  
        this.type = type;  
    }  
}
